package com.mypage.utils;

import android.app.Dialog;
import android.content.Context;

public class UtilsShowDialog {
	public Dialog loadingDialog;
	public Context context;

	public UtilsShowDialog(Context ctx) {
		this.context = ctx;
	}

	public void onShowLoadingDialog(String msg) {
		loadingDialog = Utils.createLoadingDialog(context, msg);
		loadingDialog.show();
	}

	public void setCancelable(boolean b){
		loadingDialog.setCancelable(b);
	}
	public void onDismissLoadingDialog() {
		if (loadingDialog != null) {
			loadingDialog.dismiss();
			loadingDialog = null;
		}
	}
}
